<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

    <head>
        <?php include_http_metas() ?>
        <?php include_metas() ?>
        <?php include_title() ?>
        <link rel="shortcut icon" href="/favicon.ico" />
        <?php include_stylesheets() ?>
        <?php include_javascripts() ?>
    </head>

    <body>
        <div id="wrapper">
            <div id="branding">
                <h1><a href="<?php echo url_for('@home'); ?>"><span>SAMSUNG</span></a></h1>
            </div>
            <div id="welcome">
                <p>Welcome 
                    <?php if($sf_user->isAuthenticated()): ?>
                        <?php echo $sf_user->getAttribute(Constants::SESSION_FIRST_NAME).' '.$sf_user->getAttribute(Constants::SESSION_LAST_NAME); ?> ! [<a href="<?php echo url_for('@logout'); ?>">logout</a>]
                    <?php else: ?>
                    [<a href="<?php echo link_to('Login', '/login') ?>">Login</a>]
                    <?php endif; ?>
                </p>
            </div>

            <ul id="sub_nav">
                <li><a href="#" onclick="SwitchMenu('sub_user')">Users</a></li>
                <li><a href="#" onclick="SwitchMenu('sub_courses')">Courses</a></li>
                <li><a href="#" onclick="SwitchMenu('sub_slides')">Slides</a></li>
                <li><a href="#" onclick="SwitchMenu('sub_questions')">Question</a></li>
                <li><a href="#" onclick="SwitchMenu('sub_choice')">Choice</a></li>
                <li><a href="#" onclick="SwitchMenu('sub_products')">Products</a></li>
            </ul>

            <div id="content_container">
                <?php include_partial('global/leftMenu'); ?>

                <div id="slide_menu1" style="display:none;">
                    <a href="#" onclick="swapLayers('navigation_container'); return false">Menu</a>
                </div>

                <!-- template contents goes here -->
                <?php echo $sf_content ?>

            </div>

            <div id="footer">
                <p class="copyright">Copyright &copy; <?php echo date('Y'); ?>, samsung lanka (pvt) Ltd</p>
                <p class="siteby">Powered by <a href="http://www.ndeevor.com">ndeevor Inc.</a></p>
            </div>

        </div>
    </body>
    <!-- InstanceEnd -->
</html>
